package com.goldgov.dict.web;

import java.util.List;

import javax.servlet.http.HttpServletRequest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.goldgov.dict.service.DictDto;
import com.goldgov.dict.service.DictService;
import com.goldgov.kcloud.core.json.JsonSuccessObject;

import io.swagger.annotations.Api;

@RestController
@RequestMapping("/workbench/dict")
@Api("字典接口")
public class DictController {
	
	@Autowired
	private DictService dictService;
	//测试
	@GetMapping
	public JsonSuccessObject<List<DictDto>> getDist(HttpServletRequest request){
		List<DictDto> findDictList = dictService.findDictList("d_shyk");
		JsonSuccessObject<List<DictDto>> returnResult = new JsonSuccessObject<>(findDictList);
		return returnResult;
	}
	
	
}
